package com.example.project.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.example.project.annotation.Excel;
import com.example.project.core.domain.BaseEntity;

/**
 * 项目成员对象 t_project_member
 * 
 * @author ruoyi
 * @date 2025-11-27
 */
public class ProjectMember extends BaseEntity {
	
	private static final long serialVersionUID = 1L;

	/** 成员ID */
	private Long id;

	/** 用户ID */
	@Excel(name = "用户ID")
	private Long userId;

	/** 项目ID */
	@Excel(name = "项目ID")
	private Long projectId;

	/** 角色ID */
	@Excel(name = "角色ID")
	private Long roleId;

	/** 用户名 */
	@Excel(name = "用户名")
	private String userName;

	/** 角色名 */
	@Excel(name = "角色名")
	private String roleName;

	/** 项目名 */
	@Excel(name = "项目名")
	private String projectName;

	/** 排序号 */
	private Integer sortOrder;

	/** 用户头像 */
	private String avatar;

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getUserId() {
		return userId;
	}

	public void setProjectId(Long projectId) {
		this.projectId = projectId;
	}

	public Long getProjectId() {
		return projectId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

	public Long getRoleId() {
		return roleId;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserName() {
		return userName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	public String getProjectName() {
		return projectName;
	}

	public void setSortOrder(Integer sortOrder) {
		this.sortOrder = sortOrder;
	}

	public Integer getSortOrder() {
		return sortOrder;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
				.append("id", getId())
				.append("userId", getUserId())
				.append("projectId", getProjectId())
				.append("roleId", getRoleId())
				.append("userName", getUserName())
				.append("roleName", getRoleName())
				.append("sortOrder", getSortOrder())
				.append("projectName", getProjectName())
				.append("avatar", getAvatar())
				.append("createBy", getCreateBy())
				.append("createTime", getCreateTime())
				.append("updateBy", getUpdateBy())
				.append("updateTime", getUpdateTime())
				.append("remark", getRemark())
				.toString();
	}
}